package view;

import java.awt.Color;
import java.awt.Component;

import javax.swing.JTable;
import javax.swing.table.DefaultTableCellRenderer;

public class RenderCell extends DefaultTableCellRenderer{
	

	public RenderCell(){
		super();
	}
	
	private static final long serialVersionUID = 1L;


    public Component getTableCellRendererComponent (JTable table, 
        Object obj, boolean isSelected, boolean hasFocus, int row, int column) {
    	
    	Component c = super.getTableCellRendererComponent(table, obj, isSelected, hasFocus, row, column);

        if (row % 2 == 0){ 
        	c.setBackground(new Color(180, 209, 239));
        }
        else{
        	c.setBackground(null);
        }
        
        return c;
    }

}
